package com.cqw.datamodel;

/**
 * @Author: caoqingwen
 * @CreateTime: 2021-11-15 16:40
 * @Description:
 */
public class Test1 {

    public static void main(String[] args) {
        //计算1-100的和
        int sum = 0;
        int count = 100;
        for (int i = 0; i <= count; i++) {
            sum += i;
        }
        System.out.println(sum);
    }

}
